<script type="text/javascript">
    $(document).ready(function(){
        // image slide in quick view
        $('#quick_view_banner-fade').bjqs({
            height      : 500,
            width       : 700,
            responsive  : true,
            animtype      : 'slide',
            automatic : true,
            thumbImage : true,
            nexttext    : '',
            prevtext    : '',
        }); 
    });
</script>

<div class="left_quick_view_content">
    <!--  Outer wrapper for presentation only, this can be anything you like -->
    <div id="quick_view_banner-fade">
        <!-- start Basic Jquery Slider -->
        <ul class="bjqs">
            <?php
                if($template->get('images'))
                {
                    foreach($template->get('images') as $image)
                    {
                        echo '<li><img src="'.URL::getLink('upload/'.$image).'"></li>';
                    }
                }
            ?>
        </ul>
        <!-- end Basic jQuery Slider -->
    </div>
    <!-- End outer wrapper -->
    <div class="quick_view_title"><a href="<?php echo $template->get('uri'); ?>" style="color: #FFF;"><?php echo $template->get('name'); ?></a></div>
</div>
<div class="right_quick_view_content">
    <div>
        <div class="image_content" style="float: left;width:64px;">
            <img src="<?php echo URL::getLink(($template->get('ownUserImage') ? 'upload/'.$template->get('ownUserImage') : 'image/default_user')); ?>" alt="">
        </div>
        <div style="float: left;margin-left:10px;">
            <p style="margin-top:5px;font-size:13px;font-weight: bold;margin-bottom:5px;">
                <a style="color: #3b5998;" href=""><?php echo $template->get('ownUserName'); ?></a>
            </p>
            <p style="font-size:11px;margin-top:0px;color:#555;"><?php $t = $template->get('publishTime'); echo 'Ngày '. date('d', $t).' tháng '. date('m',$t).' năm '.date('Y',$t).' '. date('H:i:s' , $t); ?></p>
        </div>
    </div>
    <div style="clear: both;"></div>
    <div class="quick_view_info">
        <p>Danh mục <strong><a style="color: #333;" href="<?php echo $template->get('hasCategory'); ?>"><?php echo $template->get('categoryName'); ?></a></strong></p>
        <p>Đơn giá <span class="hightlight_text"><?php echo number_format($template->get('price'),0,",",".");?></span> VNĐ</p>
        <p>Nhà sản xuất <strong><?php echo $template->get('manufacturerName'); ?></strong></p>
        <p>Địa điểm <strong><?php echo $template->get('location'); ?></strong></p>
        <p>Số lượt xem <strong><?php echo $template->get('totalView'); ?></strong></p>
        <p>Mo ta chi tiet</p>
        <!-- Like button --->
        <div id="heart" class="heart">
            <input type="hidden" value="<?php echo $template->get('uri');?>">
            <p><?php echo $template->get('totalLike'); ?></p>
            <div class="heart_effect <?php echo ($template->get('isLiked') ? 'hear_active' : ''); ?>"></div>
        </div>
        <p class="quick_view_description"><?php echo nl2br($template->get('description')); ?></p>
        <?php
            if(!$template->get('isOwnUser'))
            {
                echo '<a id="bt_contact" val="'.$template->get('givenName').'" href="javascript:void(0);"></a>';
            }
        ?>
    </div>
    <?php 
        $temp = explode('/',$template->get('uri'));
        $sProductId = end($temp);
        $aParams = array(
            'product_id' => $sProductId,
        );
        includeBlock('chat/commentBlock', $aParams); 
    ?>
</div>
<div style="clear: both;"></div>